projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c7f5b0
)
(Fset_window_buffer): Clear window_end_{pos,valid}.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 26 Jul 1993 19:14:26 +0000
(19:14 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 26 Jul 1993 19:14:26 +0000
(19:14 +0000)
src/window.c
patch
|
blob
|
history
diff --git
a/src/window.c
b/src/window.c
index 89e65de163751ba096710e9f05ed89abb62636f5..6d346fef4102f84e22aa73c3d664f8bc96f6e065 100644
(file)
--- a/
src/window.c
+++ b/
src/window.c
@@
-480,9
+480,13
@@
DEFUN ("window-end", Fwindow_end, Swindow_end, 0, 1, 0,
{
Lisp_Object value;
struct window *w = decode_window (window);
-
+ Lisp_Object buf;
+
+ buf = w->buffer;
+ CHECK_BUFFER (buf, 0);
+
XSET (value, Lisp_Int,
- BUF_Z (
current_buffer
) - XFASTINT (w->window_end_pos));
+ BUF_Z (
XBUFFER (buf)
) - XFASTINT (w->window_end_pos));
return value;
}
@@
-1575,6
+1579,8
@@
BUFFER can be a buffer or buffer name.")
}
w->buffer = buffer;
+ w->window_end_pos = 0;
+ w->window_end_valid = Qnil;
w->hscroll = 0;
Fset_marker (w->pointm,
make_number (BUF_PT (XBUFFER (buffer))),